package com.aisb.core;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Controller
public class BaseController {
    public SessionBean sessionBean;

    public void getSessionBean() {
        sessionBean = (SessionBean) SecurityUtils.getSubject().getPrincipal();
    }

    public Map getParams(@RequestParam Map param) {
        return param;
    }
}
